package com.ruoyi.system.entity;

import io.mybatis.provider.Entity.Column;
import io.mybatis.provider.Entity.Table;
import lombok.Data;
import org.apache.ibatis.type.JdbcType;

import java.util.Date;

/**
 * sys_user - 用户信息表
 *
 * @author mkj
 */
@Data
@Table(value = "sys_user", remark = "用户信息表", autoResultMap = true)
public class SysUserDO extends BaseDO {
    @Column(value = "user_id", id = true, remark = "用户ID", updatable = false, insertable = false)
    private Long userId;

    @Column(value = "dept_id", remark = "部门ID")
    private Long deptId;

    @Column(value = "user_name", remark = "用户账号")
    private String userName;

    @Column(value = "nick_name", remark = "用户昵称")
    private String nickName;

    @Column(value = "user_type", remark = "用户类型（00系统用户）")
    private String userType;

    @Column(value = "email", remark = "用户邮箱")
    private String email;

    @Column(value = "phone_number", remark = "手机号码")
    private String phoneNumber;

    @Column(value = "sex", remark = "用户性别（0男 1女 2未知）")
    private String sex;

    @Column(value = "avatar", remark = "头像地址")
    private String avatar;

    @Column(value = "password", remark = "密码")
    private String password;

    @Column(value = "status", remark = "帐号状态（0正常 1停用）")
    private String status;

    @Column(value = "del_flag", remark = "删除标志（0代表存在 2代表删除）")
    private String delFlag;

    @Column(value = "login_ip", remark = "最后登录IP")
    private String loginIp;

    @Column(value = "login_date", remark = "最后登录时间", jdbcType = JdbcType.TIMESTAMP)
    private Date loginDate;

    @Column(value = "remark", remark = "备注")
    private String remark;

}
